﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fingerbrisk.DataSource.FluentDatasourceInteract
{
    public enum TransactionState
    {
        Open,
        Commited,
        Rolledback
    }

    public interface ITransaction :  IDisposable
    {
        int Id { get; }
        IFluentSource Source { get; }
        TransactionState State { get; }

        bool Commit();
        bool Rollback();
    }
}
